//
//  DSZTJTableViewCell.m
//  7.13苏宁框架
//
//  Created by app15 on 15/7/17.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "DSZTJTableViewCell.h"

@implementation DSZTJTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self=[[[NSBundle mainBundle]loadNibNamed:@"DSZTJTableViewCell" owner:nil options:nil]lastObject];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(CGRect)lengthNameLabel:(CGFloat)len{
    CGRect frame=_commentNameLabel.frame;
    frame=CGRectMake(_commentNameLabel.frame.origin.x, _commentNameLabel.frame.origin.y, len*15, _commentNameLabel.frame.size.height);
    _commentNameLabel.frame=frame;
     //NSLog(@"%f",self.commentNameLabel.frame.size.width);
    return _commentNameLabel.frame;
    //NSLog(@"%@",self.commentNameLabel.frame);
}
@end
